package com.yuke.cloud.service.pmc.service.impl;

import com.yuke.cloud.service.api.pmc.dto.ProdAttributeDto;
import com.yuke.cloud.service.pmc.dao.ProdMainAttributeMapper;
import com.yuke.cloud.service.pmc.entity.ProdMainAttribute;
import com.yuke.cloud.service.pmc.service.ProdMainAttributeService;
import com.yuke.cloud.common.core.support.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by wg on 2019/07/06.
 */
@Service
@Transactional
public class ProdMainAttributeServiceImpl extends BaseService<ProdMainAttribute> implements ProdMainAttributeService {
    @Resource
    private ProdMainAttributeMapper prodMainAttributeMapper;

    @Override
    public List<ProdAttributeDto> getProdMainAttributes(Long productId,List<Long> specIds){
        return prodMainAttributeMapper.getProdMainAttributes(productId,specIds);
    }
}
